package o;

import android.os.Bundle;
import android.view.View;
import android.view.ViewParent;
import androidx.annotation.IdRes;
import androidx.coordinatorlayout.widget.CoordinatorLayout;

public final class arr {
    @IdRes
    private int ˎ = 0;
    private final View ˏ;
    private boolean ॱ = false;

    public arr(aru o_aru) {
        this.ˏ = (View) o_aru;
    }

    public boolean ॱ() {
        return this.ॱ;
    }

    public Bundle ˏ() {
        Bundle bundle = new Bundle();
        bundle.putBoolean("expanded", this.ॱ);
        bundle.putInt("expandedComponentIdHint", this.ˎ);
        return bundle;
    }

    public void ॱ(Bundle bundle) {
        this.ॱ = bundle.getBoolean("expanded", false);
        this.ˎ = bundle.getInt("expandedComponentIdHint", 0);
        if (this.ॱ) {
            ˋ();
        }
    }

    public void ˋ(@IdRes int i) {
        this.ˎ = i;
    }

    @IdRes
    public int ˎ() {
        return this.ˎ;
    }

    private void ˋ() {
        ViewParent parent = this.ˏ.getParent();
        if (parent instanceof CoordinatorLayout) {
            ((CoordinatorLayout) parent).ˊ(this.ˏ);
        }
    }
}
